package com.tangjiali.property;
/*
将题目一中 `iphone.properties`文件的数据加载到 Properties对中，并遍历打印出来。**/
import java.io.FileReader;
import java.io.IOException;

public class SolutionTopic8 {
    public static void main(String[] args) {
        try ( FileReader fr = new FileReader("E:/test/iphone.properties.txt")){

            int read = -1;
            while ((read = fr.read()) != -1){
                System.out.print(((char) read));
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
